export default {
  name: [
    { required: true, message: "模板名称不能为空", trigger: "blur" },
    { min: 1, max: 15, message: "请输入1至15个字符", trigger: "blur" }
  ],
  start_price: [
    { required: true, message: "起订金额不能为空", trigger: "blur" }
  ],
  type: [{ required: true, message: "计算方式不能为空", trigger: "blur" }],
  is_receive: [
    { required: true, message: "是否收运费不能为空", trigger: "blur" }
  ],
  rate: [
    { required: true, message: "订单金额比例不能为空", trigger: "blur" },
    {
      pattern: /^(\d+\.?)?\d{0,2}$/,
      message: "请输入整数和小数",
      trigger: "blur"
    }
  ],
  free_type2: [
    {
      pattern: /^(\d+\.?)?\d{0,2}$/,
      message: "请输入整数和小数",
      trigger: "blur"
    }
  ]
};
